-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RATIS-2185. Improve gRPC log messages debugability. #1184
Conversation
@jojochuang , the |
Thanks @szetszwo. |
Do you mean that printing the stack trace in stderr? I really think that the stack trace is not useful since it will contain the gRPC and Netty internal code. The long stack trace also makes it harder to read the log. That's why we changed the code to not printing it in RATIS-230. Get a taste below (copied from https://discuss.daml.com/t/extractor-issue-io-grpc-statusruntimeexception-unavailable-io-exception/517)
|
Ok I'll close the PR. |
@jojochuang , thanks for your understanding. I can see two options:
What do you think? |
One more option.
|
@jojochuang , let's do option 3 first since it is easy. BTW, found that some exceptions are not printed in |
What changes were proposed in this pull request?
Log StatusRuntimeException full stack trace.
I think part of the problem we saw in RATIS-2135 as well as some other related issues is that StatusRuntimeException only logs the exception messages. Therefore it "hides" the severity of the issue.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/RATIS-2185
How was this patch tested?
No test. This is a logging only change.